<template>
  <div class="parking">
    <div class="parking_video_box">
      <div class="video_box">
        <p class="video_title">入口视频</p>
        <img class="video-img" src="../../../../assets/inoutcar.jpg">
      </div>
      <div class="video_box">
        <p class="video_title">出口视频</p>
        <img class="video-img" src="../../../../assets/inoutcar.jpg">
      </div>
    </div>

    <div class="operation_box">
      <div class="operation">
        <span class="upRod">抬杆</span>
        <span>落杆</span>
      </div>
      <div class="operation">
        <span class="upRod">抬杆</span>
        <span>落杆</span>
      </div>
    </div>

    <div class="parking_info">
      <div class="info-title">
        <span style="margin-left: 3.4rem;">车场名称</span>
        <span style="margin-left: 24rem;">地址</span>
        <span style="margin-left: 24rem;">电话</span>
        <span style="margin-left: 12rem;">收费规则</span>
      </div>

      <div class="info-content">
        <span style="border: none;">{{parkInfo.parkName}}</span>
        <span>{{parkInfo.parkAddress}}</span>
        <span>{{parkInfo.telephone}}</span>
        <span>{{parkInfo.priceDesc}}</span>
      </div>


    </div>
  </div>
</template>

<script>

  export default {
    name: 'parking',
    props: ['id'],
    data() {
      return {
        parkInfo: {}
      }
    },
    mounted() {
      this.getParkInfo();
    },
    methods: {
      getParkInfo() {
        this.$axios({
          method: 'get',
          url: '/park/park-info/get-by-id',
          params: {id: this.id}
        }).then((res) => {
          if(res.code == 200) {
            this.parkInfo = res.data;
          }
        })
      }
    }
  }
</script>

<style scoped>
  .parking {
    padding: 2.1rem 4rem;
    width: 100%;
    height: 100%;
  }

  .parking_video_box {
    width: 100%;
    height: 50%;
    display: flex;
    justify-content: space-between;
  }

  .video_box {
    height: 100%;
    width: 43rem;
    /* border: 1px solid green; */
  }

  .video_title {
    background-color: #0F439B;
    height: 4rem;
    margin: 0;
    font-size: 1.8rem;
    color: #02F0FD;
    line-height: 4rem;
    padding-left: 2rem;
  }

  .video-img {
    width: 100%;
    height: calc(100% - 4rem);
  }

  .operation_box {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin: 2rem 0;
  }

  .operation {
    width: 43rem;
    display: flex;
    justify-content: space-around;
  }

  .operation span {
    display: inline-block;
    width: 12rem;
    height: 4.2rem;
    border-radius: 5rem;
    color: #0086FF;
    text-align: center;
    border: 1px solid #0086FF;
    line-height: 4.2rem;
    font-size: 2rem;
  }

  .operation .upRod {
    background-color: #2497FF;
    color: #fff;
  }

  .parking_info {
    width: 100%;
    height: 10.5rem;
  }

  .info-title {
    height: 4.3rem;
    width: 100%;
    background-color: #0C3881;
    color: #02F0FD;
    font-size: 1.8rem;
    line-height: 4.3rem;
  }

  .info-content {
    background-color: #00276B;
    height: calc(100% - 4.3rem);
    color: #157BEA;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
  }

  .info-content span {
    display: inline-block;
    border-left: 1px solid #157BEA;
    padding: 0 1rem;
  }



</style>
